package com.rabbitmq.example.entity;

import java.util.Date;

public class Message {
    private String id;

    private String exchange;

    private String routingkey;

    private String messagebody;

    private String header;

    private Boolean tag;

    private Integer retry;

    private Date createtime;

    public Message(String id, String exchange, String routingkey, String messagebody, String header, Boolean tag, Integer retry, Date createtime) {
        this.id = id;
        this.exchange = exchange;
        this.routingkey = routingkey;
        this.messagebody = messagebody;
        this.header = header;
        this.tag = tag;
        this.retry = retry;
        this.createtime = createtime;
    }

    public Message() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange == null ? null : exchange.trim();
    }

    public String getRoutingkey() {
        return routingkey;
    }

    public void setRoutingkey(String routingkey) {
        this.routingkey = routingkey == null ? null : routingkey.trim();
    }

    public String getMessagebody() {
        return messagebody;
    }

    public void setMessagebody(String messagebody) {
        this.messagebody = messagebody == null ? null : messagebody.trim();
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header == null ? null : header.trim();
    }

    public Boolean getTag() {
        return tag;
    }

    public void setTag(Boolean tag) {
        this.tag = tag;
    }

    public Integer getRetry() {
        return retry;
    }

    public void setRetry(Integer retry) {
        this.retry = retry;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
}